﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DefaultHT.Master" AutoEventWireup="true"
    CodeBehind="RoomStatus.aspx.cs" Inherits="Hotel.Operations.RoomStatus" Theme="Theme1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="height: 30px;padding:10px 10px 10px 10px;">
		<h2>Room Status</h2>
        
	</div>
    <div style="text-align: center">
	<div style="text-align:left;padding-left:10px;padding-top:5px;">
		<table>
			<tr>
				<%--<td>
					Hotel
				</td>
				<td>
					<asp:DropDownList ID="ddlHotel" runat="server" Width="100px" CssClass="dropdown">
					</asp:DropDownList>
				</td>--%>
				<td>
					Room Type
				</td>
				<td valign="middle">
					<asp:DropDownList ID="ddlRoomType" runat="server" Width="100px" CssClass="dropdown">
						<asp:ListItem>1</asp:ListItem>
					</asp:DropDownList>
				</td>
				<td>
					<asp:Button ID="btnSearch" runat="server" Text="Go" CssClass="button" OnClick="btnSearch_Click"  Width="40px"/>
				</td>
			</tr>
		</table>
	</div>
	<div style="padding-left:10px;">
		<br />
		<asp:GridView ID="GridStatus" runat="server" CellPadding="4" ForeColor="#333333"
			GridLines="Vertical" AutoGenerateColumns="false" OnRowDataBound="GridStatus_RowDataBound" CssClass="grid" AlternatingRowStyle-CssClass="gridAltRow"
					RowStyle-CssClass="gridRow" ShowFooter="false" EditRowStyle-CssClass="gridEditRow"
					FooterStyle-CssClass="gridFooterRow" DataKeyNames="RoomId" OnRowCommand="GridStatus_RowCommand"	>
			<Columns>
				<asp:TemplateField>
					<ItemTemplate>
						<asp:LinkButton ID="lnkCheckIn" runat="server" Text="Checkin" OnClientClick="alert('coming soon....'); return false;"></asp:LinkButton>
                        <asp:LinkButton ID="lnkStatus" runat="server" Text="Clear"  CommandName="Clear" CommandArgument="<%#Bind('RoomId') %>"></asp:LinkButton>
                        <asp:LinkButton ID="lnkView" runat="server" Text="Edit" OnClientClick="alert('coming soon....'); return false;"></asp:LinkButton>
                        <asp:HiddenField ID="hdn1" runat="server" Value="<%#Bind('RoomStatus') %>" />
					</ItemTemplate>
				</asp:TemplateField>
				<asp:TemplateField HeaderText="Status">
					<ItemTemplate>
                        <%#Eval("RoomStatus") %>
						<asp:HiddenField ID="hdn" runat="server" Value="<%#Bind('RoomStatus') %>" />
						<%--<asp:LinkButton ID="lnkStatus" runat="server" Text="Clear" OnClientClick="alert('coming soon....'); return false;"></asp:LinkButton>--%>
					</ItemTemplate>
				</asp:TemplateField>
				<asp:BoundField HeaderText="Room Number" DataField="RoomNumber"  />
				<asp:BoundField HeaderText="Room Type" DataField="RoomType" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center" />
				<asp:BoundField HeaderText="Occupancy" DataField="Occupancy" ItemStyle-HorizontalAlign="center" HeaderStyle-HorizontalAlign="Center"/>
				<asp:BoundField HeaderText="AC Room Charge" DataField="ChargeAC"  DataFormatString="{0:n2}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Center" />
				<asp:BoundField HeaderText="Non Ac Room Charge" DataField="ChargeNonAC"  DataFormatString="{0:n2}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Center"/>
		 
				<asp:BoundField HeaderText="Extra BedCharge AC" DataField="ExtraBedChargeAC"  DataFormatString="{0:n2}" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Center"/>
				<asp:BoundField HeaderText="Extra BedCharge NonAC" DataField="ExtraBedChargeNonAC" DataFormatString="{0:n2}"  ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Center"/>
                <asp:BoundField HeaderText="Guest Name" DataField="GuestName" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center"/>
				<asp:BoundField HeaderText="Phone" DataField="Phone" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Center"/>
				<asp:BoundField HeaderText="Email" DataField="Email" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Center"/>
				
			</Columns>
			<EmptyDataTemplate>
				<div style="width: 500px">
					No data found.</div>
			</EmptyDataTemplate>
			
		</asp:GridView>
	</div>
	</div>
</asp:Content>
